.class public Lcom/waiqin365/lightapp/deptmanager/b/a/r;
.super Lcom/waiqin365/lightapp/deptmanager/b/d;


# instance fields
.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public f:Lcom/waiqin365/lightapp/deptmanager/c/a;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x65

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/b/d;-><init>(I)V

    return-void
.end method

.method private a(Lorg/json/JSONObject;)Ljava/util/List;
    .locals 12

    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    const/4 v0, 0x0

    :try_start_0
    const-string/jumbo v1, "emps"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_29

    const-string/jumbo v0, "emps"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    move-object v4, v0

    :goto_0
    const/4 v0, 0x0

    if-eqz v4, :cond_28

    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v0

    move v1, v0

    :goto_1
    const/4 v0, 0x0

    move v3, v0

    :goto_2
    if-ge v3, v1, :cond_1d

    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    new-instance v6, Lcom/waiqin365/lightapp/deptmanager/c/b;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/deptmanager/c/b;-><init>()V

    const-string/jumbo v0, "id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    const-string/jumbo v0, "id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_3
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->a:Ljava/lang/String;

    const/4 v0, 0x1

    iput-boolean v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->v:Z

    const-string/jumbo v0, "name"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    const-string/jumbo v0, "name"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_4
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->b:Ljava/lang/String;

    const-string/jumbo v0, "mobile"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    const-string/jumbo v0, "mobile"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_5
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->d:Ljava/lang/String;

    const-string/jumbo v0, "status"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    const-string/jumbo v0, "status"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_6
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->c:Ljava/lang/String;

    const-string/jumbo v0, "pic"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_6

    const-string/jumbo v0, "pic"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_7
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->e:Ljava/lang/String;

    const-string/jumbo v0, "dept_id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    const-string/jumbo v0, "dept_id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_8
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->f:Ljava/lang/String;

    const-string/jumbo v0, "superior_id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_8

    const-string/jumbo v0, "superior_id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_9
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->h:Ljava/lang/String;

    const-string/jumbo v0, "superior_name"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_9

    const-string/jumbo v0, "superior_name"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_a
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->i:Ljava/lang/String;

    const-string/jumbo v0, "is_leader"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_b

    const-string/jumbo v0, "true"

    const-string/jumbo v7, "is_leader"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_a

    const/4 v0, 0x1

    :goto_b
    iput-boolean v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->j:Z

    const-string/jumbo v0, "product_ids"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_c

    const-string/jumbo v0, "product_ids"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_c
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->k:Ljava/lang/String;

    const-string/jumbo v0, "loc_group_id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_d

    const-string/jumbo v0, "loc_group_id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_d
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->m:Ljava/lang/String;

    const-string/jumbo v0, "attend_group_id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_e

    const-string/jumbo v0, "attend_group_id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_e
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->o:Ljava/lang/String;

    const-string/jumbo v0, "role_ids"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_f

    const-string/jumbo v0, "role_ids"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_f
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->q:Ljava/lang/String;

    const-string/jumbo v0, "imsi_binding"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_11

    const-string/jumbo v0, "true"

    const-string/jumbo v7, "imsi_binding"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_10

    const/4 v0, 0x1

    :goto_10
    iput-boolean v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->s:Z

    const-string/jumbo v0, "countrycode"

    const-string/jumbo v7, "86"

    invoke-virtual {v2, v0, v7}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->t:Ljava/lang/String;

    const-string/jumbo v0, "name"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_12

    const-string/jumbo v0, "name"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_11
    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->g:Ljava/lang/String;

    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->k:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_14

    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->k:Ljava/lang/String;

    const-string/jumbo v2, ","

    invoke-virtual {v0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v7

    array-length v8, v7

    const/4 v0, 0x0

    move v2, v0

    :goto_12
    if-ge v2, v8, :cond_13

    aget-object v9, v7, v2

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v10

    :cond_0
    invoke-interface {v10}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v10}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/d;

    iget-object v11, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->a:Ljava/lang/String;

    invoke-virtual {v9, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_0

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v10, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->l:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->b:Ljava/lang/String;

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v9, ","

    invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->l:Ljava/lang/String;

    :cond_1
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_12

    :cond_2
    const-string/jumbo v0, ""

    goto/16 :goto_3

    :cond_3
    const-string/jumbo v0, ""

    goto/16 :goto_4

    :cond_4
    const-string/jumbo v0, ""

    goto/16 :goto_5

    :cond_5
    const-string/jumbo v0, ""

    goto/16 :goto_6

    :cond_6
    const-string/jumbo v0, ""

    goto/16 :goto_7

    :cond_7
    const-string/jumbo v0, ""

    goto/16 :goto_8

    :cond_8
    const-string/jumbo v0, ""

    goto/16 :goto_9

    :cond_9
    const-string/jumbo v0, ""

    goto/16 :goto_a

    :cond_a
    const/4 v0, 0x0

    goto/16 :goto_b

    :cond_b
    const/4 v0, 0x0

    goto/16 :goto_b

    :cond_c
    const-string/jumbo v0, ""

    goto/16 :goto_c

    :cond_d
    const-string/jumbo v0, ""

    goto/16 :goto_d

    :cond_e
    const-string/jumbo v0, ""

    goto/16 :goto_e

    :cond_f
    const-string/jumbo v0, ""

    goto/16 :goto_f

    :cond_10
    const/4 v0, 0x0

    goto/16 :goto_10

    :cond_11
    const/4 v0, 0x0

    goto/16 :goto_10

    :cond_12
    const-string/jumbo v0, ""

    goto/16 :goto_11

    :cond_13
    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->l:Ljava/lang/String;

    if-eqz v0, :cond_14

    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->l:Ljava/lang/String;

    const-string/jumbo v2, ","

    invoke-virtual {v0, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_14

    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->l:Ljava/lang/String;

    const/4 v2, 0x0

    iget-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->l:Ljava/lang/String;

    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v7

    add-int/lit8 v7, v7, -0x1

    invoke-virtual {v0, v2, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->l:Ljava/lang/String;

    :cond_14
    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->q:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_18

    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->q:Ljava/lang/String;

    const-string/jumbo v2, ","

    invoke-virtual {v0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v7

    array-length v8, v7

    const/4 v0, 0x0

    move v2, v0

    :goto_13
    if-ge v2, v8, :cond_17

    aget-object v9, v7, v2

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v10

    :cond_15
    invoke-interface {v10}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_16

    invoke-interface {v10}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/d;

    iget-object v11, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->a:Ljava/lang/String;

    invoke-virtual {v9, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_15

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v10, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->r:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->b:Ljava/lang/String;

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v9, ","

    invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->r:Ljava/lang/String;

    :cond_16
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_13

    :cond_17
    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->r:Ljava/lang/String;

    if-eqz v0, :cond_18

    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->r:Ljava/lang/String;

    const-string/jumbo v2, ","

    invoke-virtual {v0, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_18

    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->r:Ljava/lang/String;

    const/4 v2, 0x0

    iget-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->r:Ljava/lang/String;

    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v7

    add-int/lit8 v7, v7, -0x1

    invoke-virtual {v0, v2, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->r:Ljava/lang/String;

    :cond_18
    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->m:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1a

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_19
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1a

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/d;

    iget-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->m:Ljava/lang/String;

    iget-object v8, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->a:Ljava/lang/String;

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_19

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->b:Ljava/lang/String;

    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->n:Ljava/lang/String;

    :cond_1a
    iget-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->o:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1c

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1b
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1c

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/d;

    iget-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->o:Ljava/lang/String;

    iget-object v8, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->a:Ljava/lang/String;

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_1b

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->b:Ljava/lang/String;

    iput-object v0, v6, Lcom/waiqin365/lightapp/deptmanager/c/b;->p:Ljava/lang/String;

    :cond_1c
    invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto/16 :goto_2

    :cond_1d
    const/4 v0, 0x0

    const-string/jumbo v1, "depts"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_27

    const-string/jumbo v0, "depts"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    move-object v3, v0

    :goto_14
    const/4 v0, 0x0

    if-eqz v3, :cond_1e

    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v0

    :cond_1e
    const/4 v1, 0x0

    move v2, v1

    :goto_15
    if-ge v2, v0, :cond_26

    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    new-instance v6, Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/deptmanager/c/a;-><init>()V

    const-string/jumbo v1, "id"

    invoke-virtual {v4, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1f

    const-string/jumbo v1, "id"

    invoke-virtual {v4, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_16
    iput-object v1, v6, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    const/4 v1, 0x0

    iput-boolean v1, v6, Lcom/waiqin365/lightapp/deptmanager/c/a;->v:Z

    const-string/jumbo v1, "parent_id"

    invoke-virtual {v4, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_20

    const-string/jumbo v1, "parent_id"

    invoke-virtual {v4, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_17
    iput-object v1, v6, Lcom/waiqin365/lightapp/deptmanager/c/a;->b:Ljava/lang/String;

    const-string/jumbo v1, "name"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_21

    const-string/jumbo v1, "name"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_18
    iput-object v1, v6, Lcom/waiqin365/lightapp/deptmanager/c/a;->c:Ljava/lang/String;

    const-string/jumbo v1, "name"

    invoke-virtual {v4, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_22

    const-string/jumbo v1, "name"

    invoke-virtual {v4, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_19
    iput-object v1, v6, Lcom/waiqin365/lightapp/deptmanager/c/a;->d:Ljava/lang/String;

    const-string/jumbo v1, "emp_num"

    invoke-virtual {v4, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_23

    const-string/jumbo v1, "emp_num"

    invoke-virtual {v4, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_1a
    iput-object v1, v6, Lcom/waiqin365/lightapp/deptmanager/c/a;->e:Ljava/lang/String;

    const-string/jumbo v1, "readonly"

    invoke-virtual {v4, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_25

    const-string/jumbo v1, "1"

    const-string/jumbo v7, "readonly"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v1, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_24

    const/4 v1, 0x1

    :goto_1b
    iput-boolean v1, v6, Lcom/waiqin365/lightapp/deptmanager/c/a;->f:Z

    invoke-virtual {v6}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v1

    invoke-direct {p0, v4}, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->a(Lorg/json/JSONObject;)Ljava/util/List;

    move-result-object v4

    invoke-interface {v1, v4}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto/16 :goto_15

    :cond_1f
    const-string/jumbo v1, ""

    goto :goto_16

    :cond_20
    const-string/jumbo v1, ""

    goto :goto_17

    :cond_21
    const-string/jumbo v1, ""

    goto :goto_18

    :cond_22
    const-string/jumbo v1, ""

    goto :goto_19

    :cond_23
    const-string/jumbo v1, ""
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1a

    :cond_24
    const/4 v1, 0x0

    goto :goto_1b

    :cond_25
    const/4 v1, 0x0

    goto :goto_1b

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    :cond_26
    return-object v5

    :cond_27
    move-object v3, v0

    goto/16 :goto_14

    :cond_28
    move v1, v0

    goto/16 :goto_1

    :cond_29
    move-object v4, v0

    goto/16 :goto_0
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 9

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v3, "code"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    const-string/jumbo v3, "code"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->d:Ljava/lang/String;

    :cond_0
    const-string/jumbo v3, "message"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string/jumbo v3, "message"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->e:Ljava/lang/String;

    :cond_1
    const-string/jumbo v3, "data"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_9

    const-string/jumbo v3, "data"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v4

    const-string/jumbo v2, "view_all"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/base/login/mainview/a;->d()Z

    move-result v3

    if-nez v3, :cond_2

    if-eqz v2, :cond_8

    const-string/jumbo v2, "1"

    const-string/jumbo v3, "view_all"

    invoke-virtual {v4, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_8

    :cond_2
    const/4 v2, 0x1

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->f:Z

    :goto_0
    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_7

    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "ORG_ADD"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_3

    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "ORG_IMP"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_a

    :cond_3
    const/4 v2, 0x1

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->g:Z

    :goto_1
    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "ORG_UPD"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_4

    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "ORG_IMP"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_b

    :cond_4
    const/4 v2, 0x1

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->i:Z

    :goto_2
    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "ORG_DEL"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_c

    const/4 v2, 0x1

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->k:Z

    :goto_3
    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "EMP_ADD"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_5

    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "EMP_IMP"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_d

    :cond_5
    const/4 v2, 0x1

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->h:Z

    :goto_4
    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "EMP_UPD"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_6

    const-string/jumbo v2, "ops"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "EMP_IMP"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_e

    :cond_6
    const/4 v2, 0x1

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->j:Z

    :cond_7
    :goto_5
    const-string/jumbo v2, "products"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_11

    sget-object v2, Lcom/waiqin365/lightapp/deptmanager/w;->b:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->clear()V

    const-string/jumbo v2, "products"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    move v3, v1

    :goto_6
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v3, v2, :cond_11

    invoke-virtual {v5, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    new-instance v7, Lcom/waiqin365/lightapp/deptmanager/c/d;

    invoke-direct {v7}, Lcom/waiqin365/lightapp/deptmanager/c/d;-><init>()V

    const-string/jumbo v2, "id"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v7, Lcom/waiqin365/lightapp/deptmanager/c/d;->a:Ljava/lang/String;

    const-string/jumbo v2, "name"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v7, Lcom/waiqin365/lightapp/deptmanager/c/d;->b:Ljava/lang/String;

    const-string/jumbo v2, "selected"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_f

    move v2, v0

    :goto_7
    iput-boolean v2, v7, Lcom/waiqin365/lightapp/deptmanager/c/d;->c:Z

    const-string/jumbo v2, "disable"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_10

    const-string/jumbo v2, "1"

    const-string/jumbo v8, "disable"

    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_10

    move v2, v1

    :goto_8
    iput-boolean v2, v7, Lcom/waiqin365/lightapp/deptmanager/c/d;->d:Z

    sget-object v2, Lcom/waiqin365/lightapp/deptmanager/w;->b:Ljava/util/List;

    invoke-interface {v2, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto :goto_6

    :cond_8
    const/4 v2, 0x0

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->f:Z

    goto/16 :goto_0

    :catch_0
    move-exception v0

    move v0, v1

    :cond_9
    :goto_9
    return v0

    :cond_a
    const/4 v2, 0x0

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->g:Z

    goto/16 :goto_1

    :cond_b
    const/4 v2, 0x0

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->i:Z

    goto/16 :goto_2

    :cond_c
    const/4 v2, 0x0

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->k:Z

    goto/16 :goto_3

    :cond_d
    const/4 v2, 0x0

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->h:Z

    goto/16 :goto_4

    :cond_e
    const/4 v2, 0x0

    sput-boolean v2, Lcom/waiqin365/lightapp/deptmanager/w;->j:Z

    goto/16 :goto_5

    :cond_f
    move v2, v1

    goto :goto_7

    :cond_10
    move v2, v0

    goto :goto_8

    :cond_11
    const-string/jumbo v2, "loc_groups"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_13

    sget-object v2, Lcom/waiqin365/lightapp/deptmanager/w;->c:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->clear()V

    const-string/jumbo v2, "loc_groups"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    move v3, v1

    :goto_a
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v3, v2, :cond_13

    invoke-virtual {v5, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    new-instance v6, Lcom/waiqin365/lightapp/deptmanager/c/d;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/deptmanager/c/d;-><init>()V

    const-string/jumbo v7, "id"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/d;->a:Ljava/lang/String;

    const-string/jumbo v7, "name"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/d;->b:Ljava/lang/String;

    const-string/jumbo v7, "selected"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_12

    move v2, v0

    :goto_b
    iput-boolean v2, v6, Lcom/waiqin365/lightapp/deptmanager/c/d;->c:Z

    sget-object v2, Lcom/waiqin365/lightapp/deptmanager/w;->c:Ljava/util/List;

    invoke-interface {v2, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto :goto_a

    :cond_12
    move v2, v1

    goto :goto_b

    :cond_13
    const-string/jumbo v2, "attend_groups"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_15

    sget-object v2, Lcom/waiqin365/lightapp/deptmanager/w;->d:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->clear()V

    const-string/jumbo v2, "attend_groups"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    move v3, v1

    :goto_c
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v3, v2, :cond_15

    invoke-virtual {v5, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    new-instance v6, Lcom/waiqin365/lightapp/deptmanager/c/d;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/deptmanager/c/d;-><init>()V

    const-string/jumbo v7, "id"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/d;->a:Ljava/lang/String;

    const-string/jumbo v7, "name"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/d;->b:Ljava/lang/String;

    const-string/jumbo v7, "selected"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_14

    move v2, v0

    :goto_d
    iput-boolean v2, v6, Lcom/waiqin365/lightapp/deptmanager/c/d;->c:Z

    sget-object v2, Lcom/waiqin365/lightapp/deptmanager/w;->d:Ljava/util/List;

    invoke-interface {v2, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto :goto_c

    :cond_14
    move v2, v1

    goto :goto_d

    :cond_15
    const-string/jumbo v2, "roles"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_17

    sget-object v2, Lcom/waiqin365/lightapp/deptmanager/w;->e:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->clear()V

    const-string/jumbo v2, "roles"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    move v3, v1

    :goto_e
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v3, v2, :cond_17

    invoke-virtual {v5, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    new-instance v6, Lcom/waiqin365/lightapp/deptmanager/c/d;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/deptmanager/c/d;-><init>()V

    const-string/jumbo v7, "id"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/d;->a:Ljava/lang/String;

    const-string/jumbo v7, "name"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/deptmanager/c/d;->b:Ljava/lang/String;

    const-string/jumbo v7, "selected"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_16

    move v2, v0

    :goto_f
    iput-boolean v2, v6, Lcom/waiqin365/lightapp/deptmanager/c/d;->c:Z

    sget-object v2, Lcom/waiqin365/lightapp/deptmanager/w;->e:Ljava/util/List;

    invoke-interface {v2, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto :goto_e

    :cond_16
    move v2, v1

    goto :goto_f

    :cond_17
    const-string/jumbo v2, "dept"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_9

    const-string/jumbo v2, "dept"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    new-instance v2, Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-direct {v2}, Lcom/waiqin365/lightapp/deptmanager/c/a;-><init>()V

    iput-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v4, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    const-string/jumbo v2, "id"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_18

    const-string/jumbo v2, "id"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_10
    iput-object v2, v4, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    const/4 v4, 0x0

    iput-boolean v4, v2, Lcom/waiqin365/lightapp/deptmanager/c/a;->v:Z

    iget-object v4, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    const-string/jumbo v2, "parent_id"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_19

    const-string/jumbo v2, "parent_id"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_11
    iput-object v2, v4, Lcom/waiqin365/lightapp/deptmanager/c/a;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    const-string/jumbo v4, ""

    iput-object v4, v2, Lcom/waiqin365/lightapp/deptmanager/c/a;->c:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    const-string/jumbo v2, "name"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1a

    const-string/jumbo v2, "name"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_12
    iput-object v2, v4, Lcom/waiqin365/lightapp/deptmanager/c/a;->d:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    const-string/jumbo v2, "emp_num"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1b

    const-string/jumbo v2, "emp_num"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_13
    iput-object v2, v4, Lcom/waiqin365/lightapp/deptmanager/c/a;->e:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    const-string/jumbo v2, "readonly"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1d

    const-string/jumbo v2, "1"

    const-string/jumbo v5, "readonly"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1c

    move v2, v0

    :goto_14
    iput-boolean v2, v4, Lcom/waiqin365/lightapp/deptmanager/c/a;->f:Z

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v2

    invoke-direct {p0, v3}, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->a(Lorg/json/JSONObject;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto/16 :goto_9

    :cond_18
    const-string/jumbo v2, ""

    goto :goto_10

    :cond_19
    const-string/jumbo v2, ""

    goto :goto_11

    :cond_1a
    const-string/jumbo v2, ""

    goto :goto_12

    :cond_1b
    const-string/jumbo v2, ""
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_13

    :cond_1c
    move v2, v1

    goto :goto_14

    :cond_1d
    move v2, v1

    goto :goto_14
.end method
